import { Component, OnInit } from '@angular/core';
import { SelfService } from './../../../data/self.service';

@Component({
	selector: 'app-publish-list',
	templateUrl: './publish-list.component.html',
	styleUrls: ['./publish-list.component.less']
})
export class PublishListComponent implements OnInit {

	finishTaskList = [];
	constructor(private selfService: SelfService) { }

	ngOnInit() {
		this.getMyFinishTasks();
	}

	getMyFinishTasks() {
		this.selfService.getMyAddTask(1, 999).subscribe((response) => {
			console.log(response);
			this.finishTaskList = response;
		});
	}
}
